Moved resetting the badge icon to applicationDidBecomeActive.