Don't react on data change notification if the activity is in the proces...

...s of being shutdown (Closes #3991)