Add a check that installD is available before using it

Bug: b/226868221
Test: Manual Testing
Change-Id: Ic463da00c8c8b56ab393c0b4a1969b408fc77f1e
1 file changed