Check for nulls in onDestroy.