Set wgArticleId correctly after a page is dynamically loaded

Change-Id: I4be2e7b11f4b7fd812801674946188fc6a381f8b
Merge "Set wgArticleId correctly after a page is dynamically loaded"