emacs.el: Do not emit error when tty-type is not available