Invalid request causes 500 through ValueError in search facet

[This line](https://github.com/okfn/ckan/blob/master/ckan/controllers/package.py#L267) should be wrapped in a `try-except-ValueError` similar to [this line](https://github.com/okfn/ckan/blob/master/ckan/controllers/package.py#L126).