While this was ugly code with a side-effect, the ```jsavnullnode``` class should still be removed from the element.