mw.MessagePoster: Fix creation of mw.Api() object