fix: pubsub ack regression test - empty message

Seems the regression test for pubsub ack is not working. This is because `message.data` is `undefined` (maybe upstream change?). This made the test pass by just checking if it exists first, and if it doesn't, don't bother trying to include it.