Fix for the problem with filter when using WMS TIME parameters (#3795)