Fixes Joomla 3.1.4 compatibility issue (#39)