Fix multiple-page rendering for MediaWiki 1.21