3D classification crash ending with AssertionError

@RussellM – FYI: this should now be fixed in Patch 240807.