Fix WMS filter request with new API (ticket 7258)