Fix bug in fetching emails in Joomla 2.5