validate the id passed in for sync log
Merge pull request #154 from dimagi/safe-synclog

validate the id passed in for sync log