Fix bug #11964 with crashes inside internal-char-font on non-GUI frames.