Fix error message is not displayed in com_config (#4653)

Fix https://github.com/joomla/joomla-cms/issues/4653