Fix "Balloc() allocation exceeds list boundary"

A similar error apparently occurred in the MW parser.and was worked around a while back (see T10689) by replacing == with ===.
Might be connected to PHP trying to convert a string to a number value.

Bug: T70710
Change-Id: I4e6fa33bd778945799df9c484c4eae3d891474ab