I would like to extend our integration tests to send/receive pubsub messages that have attributes but no data.
This pull requests fixes a NullPointerException for such messages: #5016
Imported from Jira BEAM-4589. Original Jira may contain additional context.
Reported by: udim.