Fix issue causing 400 where sites were not defined in search requests