Fixed the JDispatcher deprecation issue in newer Joomla Versions