Don't crash when FILE type is unknown (null).