Fix getText() method of NotificationElement (#14356)

Change-Id: Ie7de999976b6aa73247a7e475d3fd395e22d9317