#172950: search with invalid criteria (date)

Fix to review and commit later to trunk