EmptyNode.addNode now checks the added node type