Avoid sanity check assert when D&D layers between two images
The document should not be destroyed with the image still assigned and alive :)
CCBUG:389503