prevent physics editor crash when object has no physics in engine