Fix crashing in addons module when fragment reattach to activity