[fix] the name of the variable (#5507)

https://github.com/joomla/joomla-cms/issues/5507