support stub nodes like images when deleting using backspace/delete