__messages_load(): check for calloc() failure
(cherry picked from commit bc9ce839f9811ee9e3990bb26c00031a84fa50bd)