Stop using deprecated JApplication::getHash()

JApplication::getHash was deprecated in favour of JApplicationHelper::getHash(). The former just proxies to the latter since 3.2.

This moves all calls (except one JSession where the change is contained within the larger refactor at https://github.com/joomla/joomla-cms/pull/5088 ).