Close gh-348 $classes not defined using the Joomla3 renderer in the front-end