Fixing an issue where if the parent had not been laid out yet, the editor would get stuck in an infinite loop