Prevent NPE occuring when clearing all notifications.

TODO: possibly move ViewState to the views' tags so that
the lifecycle of the state is tied directly to the view.

Bug: 115567862
Change-Id: I130035738d7d7e6df59f2267dd005d9d3265e90c
Test: Tested on device.
1 file changed