Fix conditionally-turn-on-pandoc when in temp file

Fix conditionally-turn-on-pandoc function when calling from temp file and `(buffer-file-name) returns nil.