replace undefined values with null in filters returned by get query before calling search or autocomplete