Fixes bug 848806 - Rewrite parameters before assigning default values in search.
Merge pull request #1116 from AdrianGaudebert/848806-middleware-search-date-params

Fixes bug 848806 - Rewrite parameters before assigning default values in...