Remove method setContent() from Snippet struct
Check validity of JSON document in JsonSnippetTranslator

Check validity of the passed JSON document before processing it in
JsonSnippetTranslator.
Extend unit tests for SnippetCollection