Properly handle generating a hash for objects with no audit records
Fixes #821