Fixed rendering bug so foreground controls only get rendered for actual controls and not buttons, forms or container slots.