Fixed problems with binding 'null' or empty elements, better DOM nodeName handling