Wait for template load before rendering component

When templates are compiled and no longer loaded via. AJAX a different
behaviour was exhibited where afterRender would be executed before
template is rendered, exposing problems that were not visible locally.