When using trace logging for adding a cache entry, avoid a null pointer
dereference when adding a negative cache entry.