Fixed notifications crashing when activity was destroyed.