Correct test for zero hash versus nil on empty db.