Fixes #3017

Changes behaviour for the simple CASE so that null as comparator results in the else expression being used