Crash was fixed in301b2ae183but re-introduced due to changes done in the commit822907a68d: Macro to create channel for object data-block had been moved outside of the `if` block. Also fixes #130753. Pull Request: https://projects.blender.org/blender/blender/pulls/130787