Fix possible crash when returning to Preview after Login.

Change-Id: I65fe8f241e72ad369dda681da105b12cc256fc0c