guard against an error that occurs when height or width change followed by destroy in the same runloop