Fix analyzer issue when "is not null" is used in join clause

Fixes #1479