Fix for #1784: Compiler always adds checkNull() for rhs of 'else' operation
Test for #1784: Compiler always adds checkNull() for rhs of 'else' operation