Fix sorting by a custom elasticsearch field didn't work as expected when using SearchOrder class (ie Report Improvements and sorting reports by comment count)
Improve handling of expired search links to return a 404 if any errors exist with the arguments as this stops google search indexer from complaining about the previous 400 error code