Improve the diff parser, so that a block of changes is detected correctly.
Make sure DetectChanges doesn't fail because of a empty diff.