builtin/revert.c: don't dereference a NULL pointer