Usergrid 2543

Fixed issues with sync on firefox.