Clear --last-buffer variable only if buffer is no longer available.