I may have experienced that problem once in 747. Not entirely sure, though...docking works fine for me on almost every instance.
The time it messed up, I switched between ships during the docking process, and the one on autopilot just kind of RCS'd it's way hundreds of meters away until it lost it's target. In theory, and from the perspective of a game developer, it makes sense that swapping ships would mess it up.