Fix my NERDTree function when the buffer is deleted/wiped.