Fixes in SkyDrive sync

- Fixed crash when background download completed with invalid result.
- Fixed sync timing out after first login.