In fairness to Johns (and as odd as it feels to defend him about one of my girls), there have been about twelve different conflicting canons over the years as to how and when Jim figured it out, so no matter what he tries to be consistent with, he's not going to line up with most of her history.
This does come off unusually awkward regardless of whether you assume it's Jim knowing and talking around it or totally ignorant, though.