Ensure that NULL inputs return NULL