Fixes 500 coercion error in searches issue #274