check whether auto-compile-file-buffer is non-nil before use

Auto-Compile isn't the only one triggering compilation.  When
something else does it, then `auto-compile-file-buffer' is nil.