core: minor fix in mime-lookup for files not recognized by 'identify'

(cherry picked from commit 911e756157c2c7553add78fbe92acb30b6d85774)