Engine: added extra error check to room deserialization

This helps detect memory potential memory corruption early