Joomla 2.5: Pagination not working in frontend (#1562)