CardsFragment: Fix for IllegalStateException

Use isAdded instead of isDetached.
Check if fragment needs refreshing in onAttach
GerritSearchView: Send an intent when search query changes but don't
 include the query. Instead save it so it can be queried when the fragment
 is ready to display it (in onCreateLoader)

Change-Id: Iba0569ab4c6ba0bfcecd8e70a071ab362ced8827