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

This fixes compatibility with the updated public API implemented here https://github.com/AllPlayers/allplayers-mainline/pull/2455.