Don't add new RelNode if there are no projects

select null from T; will run into this issue.