Making it possible to call setFirstBoot when mInstallD is available

Along with that also catching Exception to be consistent with other
Installer methods

Bug: b/226868221
Test: Manual testing
Change-Id: Ifab04ca6539afdc3fa254e9abb45f66bda6e1b59
1 file changed