Add checks for null in SyncManager

Bug: 2619723
Change-Id: Iea3c3258274bdf86784e232922290841ad0d9d36
1 file changed