Prevent TypeError in _delete_swap()

In some case (using native-dns) _delete_swap() may throw TypeError 
if child._parent is null. 
Expl: `TypeError: Cannot read property '_left' of null`