wms viewer: fixed error when 'project' is not defined in URL.