emptyparagraph-plugin: checks if parentNode exists when removing a node.