Possible fix crash involving fragment not being attached to activity.