muc.lib: properly fix mediated muc invitations. (Fixes #192)