(CE-859) Apply MW 1.19.16 security release

https://git.wikimedia.org/commitdiff/mediawiki%2Fcore/eddf1e626ebd81a19546ec20c3ec82a7b2938bfd
https://git.wikimedia.org/commitdiff/mediawiki%2Fcore/e9c4a374f48c7180e02fab10d3bc5988ec33e5f7

@owend @federico-lox @lgarczewski