- handle possible null pointer if all views have been removed from the adapter before handleAdapterChanged is called