Don't dereference NULL upon lookup failure.