Yeah, the intent was to have a "weak" listener here but the attempt itself was "weak" :-)

I added a "beforeDocumentDelete" handler to delete the cache reference when the document is deleted. I did _not_ `addRef()` the document, since this listener should be weak.