Prevents crash on navigating back to the ListWithElementsActivity