Fix the bug when bossImpl.SubmitWorkflow is called with appContext, we should not access syncObj since it is null.