BN_div bugfix. The q-- loop should not be entered in the n0==d0 case.