== undefined -> == null; fixes #642