Fix query validator timerange check

One of unit tests was broken after merge. Fixed now.

P.S. Don't know how it can pass before...