have to better check the types for empty
Merge pull request #480 from jiwalker-usgs/master

types was getting empty string and causing initial query to fail