Fix update history cannot launch the activity, add null check for up action