What you should also consider here is that this article is not looking at wage comparison within one company. It's looking at overall earnings in the population with a very thorough and deep analysis. It's an analysis for policy making, not for grandstanding. And for this whether women continue to work is also relevant - as the authors note this is quite a significant consideration even for labour force planning/statistics. Moreover thinking of e.g. pensions this is a very important point - as women will have lower pensions due to lower lifetime earnings.
Please do look at the whole picture, rather than just try to validate your viewpoint. There are many interesting tidbits here, for example that earnings fall 10% for each following child. The graph on p42 comparing childless women and mothers is also particularly impressive.