Fixed an issue that app crashes when process is launched by GCM