This was causing a crash when the mesh does not have the mask data initialized. I also added the same check to mask extract as it works the same way. Reviewed By: jbakker Maniphest Tasks: T72830 Differential Revision: https://developer.blender.org/D6513