Fixed the activity to pass listeners even when the activity was
destroyed.