mwcore-docgen: Fix script to work with postmerge parameters.

Change-Id: Icaa08a1d4782003ef16673ea147091c3d392dc55