Theme os_file_icon to avoid non existing icons

ReRoll #5752 fix against SCHOLAR-3.14.
(Closing #6322)