[#50079207] Changed messagesGetBox() to work with changes in the public API.

This fixes compatibility with the updated public API.