Fixed an issue with an API call to collection search crashing the server