[Fix #1350] Check that Blocks cop doesn't create syntax errors

The cops AndOr and Not share the same logic, but it looks like
their autocorrect methods are not capable of introducing syntax
errors.
Merge pull request #1377 from jonas054/1350_autocorrect_blocks

[Fix #1350] Check that Blocks cop doesn't create syntax errors