fix the nullpointer when acl is null
We are observing corrupted records with null acl on some environments. And trying to figure out how it could happen. But before we need to expose some fix for this bug, because it blocks reindex process for the entire index.