Fix from CMS

See https://github.com/joomla/joomla-cms/pull/3856