Adding some checks and changing the order of some operations to try to prevent NRE on RainbowColorTagger during text view destruction (Issue #90)