ECMS-5157 Fix Wrong type icon is used for the document