Sentry event sent with Java SDK shows `<unlabeled event>` if sent with "message" instead of "formatted"

Description

Using latest glitchtip, installed with Docker. I'm testing migration from Sentry, using io.sentry:sentry:7.6.0.

Events, which were working properly with a Sentry backend, were showing as <unlabeled event> in the GlitchTip issues. After experimenting, I found out that sending with this is fixing this:

                    val event = SentryEvent().also {
                        val msg = Message()
                        // broken if using msg.message = "my event name" 
                        msg.formatted = "my event name"
                        it.message = msg
                    }
                    sentryEventsClient.captureEvent(event)

Proposed Solution(s)

Show the string contained in "message" even if "formatted" is set to null or an empty string.