fixed bug where searching without entering an occupancy value would raise an error