Fix customer search bug requiring null sales territory.