Fixed checking of existing date range parameters.