Fix circular block compare crash, CC#1049

Fixes [CC#1049](http://issue.cc/r3/1049)
Tested in Linux (0.4.4) with 3 progressions (successes instead of crashes) and no regression