Fix NPE when a pack had no messages