Better case handling in URL parameters and added WMTS check for error
handling.