Make sure outputElment exists in media widget after render is called

This is to address the problem in insertChildWidget in container.js.

When widget 'render' method is called, it doesn't set outputElement, and the following 'insert' will fail on trying to insert a null object.