Fixed #21366 -- regression in join promotion logic

The regression was caused by ecaba3602837d1e02fe1e961f7d3bf9086453259
and affected OR connected filters.