Fix for issue with legacy.php (view) in Joomla 3.1.4