CalDav.js: fixed formating
sync issues

- fixed possible deletion of local objects during downsync from
  multiple folders
- fixed possible crash in upsync

Open-WebOS-DCO-1.0-Signed-Off-By: Achim Königs
<garfonso@tratschtante.de>