NPE check on Document.hasReaders for null item. Though arguably if an item from Document.getItems() is null, it's very likely that the document has readers on it. But we'd need to prove it out.