views: don't die in getReferencedViewCount if we have removed an entry

(integrated from komodo (trunk) change 80868 by marky)

git-svn-id: https://svn.openkomodo.com/repos/openkomodo/trunk@13241 b87d16e7-d29f-4ee1-b5ec-817d645d335f