[TextKitDemo] Need to stop listening for notifications when not interested anymore.

This fixes a memory leak, since the event handler was keeping a reference
to the view controller, preventing it from getting freed.

See desk #60817 for a test case.
[TextKitDemo] Simplify code a little bit.