core: ViewGroup: add null check for ActivityTrigger

Change-Id: I18ab76ff5bcddf05eef024a4947b0331812eff65