masks and blending: switch off mask edit mode if there are no shapes