MFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.

PR:		83099