Potential crashes when calling getActivity() asynchronously
Fragments sometimes call getActivity() asynchronously. !341 (merged) should ensure that we never call getActivity() in situations where the activity has been destroyed, but it's still possible that we're calling it in situations where the fragment has been detached from the (still existing) activity, and getActivity() therefore returns null.