XWIKI-9220 - Rest api multiwiki query does not set database properly