Fix query when time range filter is used alone

https://github.com/geoadmin/mf-chsdi3/issues/601