Fix loading of messages using $wgMessagesDirs

This was missed during the migration.

Change-Id: I4887a896ed3635afd0e1a1a26db13765b4cbc6d5