Fix for checking delivery status - header decode was using wrong function.
(cherry picked from commit c7957d0d66a1b89365d8a39c4fb832481a16f8f2)