PROTON-646: Fix when Perl sets a message body to be BOOL:False. Had to work around how checking whether a body value was defined would return false if it were defined but set to false.