Fix parser tests for master MediaWiki core

Caused by I33462a8b in core.

Bug: 52961
Change-Id: I7efa50f4ac86ee732d9ce34fdaa3d8c28179d062