fix MD/NM computation for case of insertion before first match