Fixes #3017

Changes behaviour for the simple CASE so that null as comparator results in the else expression being used
Merge pull request #3445 from petraselmer/null-case

Fixes #3017