Fixed bug when scipt for "autocmd BufWinLeave" were trying to get b:NERDTree variable from an invalid buffer.
Note from BufWinLeave help:
	NOTE: When this autocommand is executed, the
	current buffer "%" may be different from the
	buffer being unloaded "<afile>".