missing null pointer check added
Merge pull request #310 from IDgis/3.4-user-agent-npe-fix

Missing User-Agent header results in NullPointerException