don't destroy types that can't be converted to UTI

If none of the methods for resolving a type string to a UTI succeed,
return the original string instead of `nil`.