Restores isActivityDestroyed() method.

Fixes #1391