Check state of listview before saving position

onSaveInstanceState can be called before listView has been instantiated
so it needs to be checked before being accessed.