Avoid a crash when displaying page in Emacs without X support