Fix crash when FILE type does not exist.