Fixed if-bracket issue

Fixed issue created by https://github.com/joomla/joomla-cms/pull/1403