Fix bug when node.code isn't set