cider-repl-buffer was changed to cider-repl-name

Because of this Compliment requests from REPL try to send context, so it may be the reason for bugs like clojure-emacs/cider#549.
That said - you're comparing the `major-mode` of the current buffer with something that's definitely not a major mode. The major mode of REPL buffers is `cider-repl-mode`.