[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.