changed check for Joomla task request var to use JInput library method