Fix loading of messages using $wgMessagesDirs

This was missed during the migration.

Change-Id: I29be3acdec8aea7e1e080f2c0875393ca6caee34