UP-3843 : Fixed aggregation error for search aggregation trying to submit null when someone searches for a space.