Quick fix to error handling for displaying invalid search query parameters (this should be replaced by a more robust render_search_to_s function)