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