Fix a segfault on crypt(x, NULL).