Update selectedAnnotations at annotationUpdate event

If we got annotations selected in the sidebar and delete one, the filter
doesn't get updated. Alas, if we delete the last selected annotation then
the sidebar will show zero annotations but the filter will still say:
"Showing x annotations..."

This fix gives a new listener to the annotationDeleted event and properly
updates the selected annotation dict and count if needed.

Fix #1591
I'm just saying I would have written only `if scope.selectedAnnotations?`.
I don't want anything changed, I just saw an opportunity to inform if it wasn't known by all parties that `delete someObject[key]` is never an error in JS.