Fix for GEOT-4706 null pointer for poorly formed WMS Capabilities documents

Added null check to protect WMSClient from poorly formed WMS Capabilities documents