Look for references in exterior cells first 

"Chargen_crate_01_empty" is inside the prison ship, but also outside of it.
The one that needs to be disabled by the script is the one outside, but openmw would look in interiors first. This would cause a crate to float in the air after chargen.