Switch node null/not null tests don't always work

    a === null / a !=== null

is different to

    typeof a == "undefined" / typeof a != "undefined"