node.c:  Make sure no functions segfault if passed null pointers.