Fix incorrect return value that causes book matching to run very slowly

This isn't important enough to require a slipstream release, but if you make one for some other reason could you include this patch? Thanks.