Changed from using 'ParserBeforeInternalParse' hook to 'ArticleEditUpdates' instead

Based on a patch contributed by an anonymous user on the talk page.

Change-Id: Ibfe62b2d35bdb0cf42c907dbe9c85c1f9b5535cc