Nil check in ProductLicense.rb

Note: I'll merge it to `master` as well
well, to be safe I think we can use `return false unless location.is_a?(String)`