Fixed null pointer issue in getNotificationText() method.