Try to prevent the problem that the activity of a fragment is null (outside hgbase/tjger).
Authored by: hagru 2017-08-31
Parent: [r264]
Child: [r266]