NotificationHostView: fix some nullpointer exceptions, code cleanup

Change-Id: Ife281ec249f6c984cb25ef450319928579637a7d