Hide AddUI message

How I can hide message in console:"AddUI: Unknown Parent for Layer"

That message appears when a UI element is being drawn and it's parent element does not exist. To avoid this, draw the parent element first, then the children.