Fix more code that misreads API data with $wgDebugToolbar enabled

See also I907ef6fc.

Change-Id: Ie44faa15629ebba834cb08ba6247ff3beaabd0ae
Merge "Fix more code that misreads API data with $wgDebugToolbar enabled"