MFC r255891:

Import NetBSD readline.c,v 1.104: do not crash with add_history(NULL).