Added try/catch around inserting new document
Merge pull request #33 from kudos-web/User-Contribution

Added try/catch around inserting new document