iconName was set to mt.iconName() at the beginning, but this returns always "application-octet-stream" making all subsequent iconName.isEmpty() check not work as expected.
This patch sets iconName to mt.iconName() only when needed.
BUG: 417922
BUG: 417921
CCBUG: 417069
FIXED-IN: 5.68