Fixed segmentation fault when deleting a key who's index was moved because it's original spot was taken and the original spot is now equal to NULL.