Fixed PHP notices for clean installations under Joomla! 3.1