fix bad check

typeof null == 'object'
null.nodeName = error