libc/citrus: Catch a NULL pointer earlier, check for empty string later.