Search backend: fix parsing formatted diffs
Created by: camdencheek
This fixes an issue with parsing formatted diffs where we would skip the last hunk of each file and the last file of each formatted diff
Test plan
Manually checked that updated test output is correct.