CA-141502: Making messgae_destroy more robust
Signed-off-by: Ravi Pandey <ravi.pandey@citrix.com>