Avoid crashes due to objects read with the #n=object form