avoid adding nil search joins