Fixed transport helper to check for null or empty query string.

#1556