fix(server): /search/random
failing with certain options
#13040
+250
−62
Merged