While it was very generous of your inlaws to invite you (and the reasons are sound), I think that the difficulty of possiblity of seeing your W with her BF there might be...complicated.
Plus the knowledge of just what happened would be hanging over everyone, so, I think that a polite decline (since the invite was from the in-laws) is the best course of action as well.