Added behavior for node selection in the case of OR operations refs #19213