Add extra checks in XCache-methods to prevent fatals
Merge branch 'master' of github.com:yireo/joomla-cms into issue-20476