[BUG #7273] Make sure to remove the placeholder if the layout parent is set to null.
[BUG #7273] Fixed dispose of placeholder and make sure we only create the placeholder element if needed.