GATEWAY-3315: Added error handling if url is invalid for DQ.
Merge pull request #306 from akong/gateway-3315

GATEWAY-3315: Added error handling if url is invalid for DQ.