- if (c) {+ if (c && icons[c[0]] != null) {
This change request is also referenced at https://github.com/joomla/joomla-cms/pull/538/files.