Fixed a NullReferenceException on startup.

I constantly experienced a NullReferenceException as soon as I opened the first code-file.
Debugging revealed that the TagsChanged-event was always null the fist time it needed to be fired.
I have implemented the recommended way to safely fire an event here.