Fixed a small bug in ListActivity.onPause()

It didn't check if there was a selectedEntry to save. On new install without
entries added it could crash the app.