Fix bug in WhelkInitializer#translateParams and add spec for it