Validate length of revisions.content column to avoid errors

* Very long text will cause MySQL to truncate the column content, which
  creates an invalid JSON structure, causing an error.  This doesn't fix
  it, but just prevents the offending operation from completing in the
  first place.
Merge pull request #642 from reciprocity/feature/validate-revision-content

Validate length of revisions.content column to avoid errors