Fix an issue where a memory leak would occur in LoadingFragment if it exited before it was visible to the user.