MODE-2200 Corrected NPE

Corrected an NPE that occurs when attempting to determine if a binary value is no longer used, when the document store no longer has an entry for the binary's reference count document.
Merge pull request #1250 from rhauch/mode-2200

MODE-2200 Corrected NPE