[#29442] Implementing exception handling as per the Joomla! 3 bugfix from gh-1278. Thanks @piotr-cz