Fixed bug where search with no value for occupancy raises an error