Ensure list adapter is not null before notifying data set change.