[qmlmessages] Adapt to MessagesContextProvider API changes