Alerts with no title will return the text as null, instead of the alert's message content.

When getting the text of an alert with no title, null is returned. In this case, we want the body of the alert to be returned instead.