Follow up r70917. Having $wgCapitalLinks = false; was what caused the errors.