Fixed checking of existing date range parameters.
Merge branch 'master' into stable