Allow setups with non-empty $wgDBPrefix
ERM32328
[4.4.x]
Change-Id: Ie803363c42530f6e51501e609fe27e2e8cb2475f