Add try/catch to handle invalid settings activity

Change-Id: I20d9480fd3bfe14fe4e85ed2937aaba3df09302d
Test: make
Bug: 322287971
2 files changed