remove unnecessary attribute check
add loose sync token toggle and test to not fail hard on missing sync logs
add loose sync log toggle support for ota restores
Merge pull request #5165 from dimagi/loose-sync-toggle

add loose sync token toggle and test to not fail hard on missing sync logs