Better error handling in WmsParser