#896: Ensure updateMap calls endCompoundOperation

Ensure endCompoundOperation is called whenever beginCompoundOperation completes, even if removeRange (or anything in the range) fails. Moreover, call removeRange only when there is text to remove, since apparently the realtime API complains otherwise.
Merge branch 'patch-1' of https://github.com/Blaisorblade/ingress-intel-total-conversion
sync plugin: bump version number for merged change