Fix boolean check in Message::hasBody()