Bail out properly when we can't find a keymaster instance.

Just a band-aid fix as this code will soon be obsolete.

Bug: 180861644
Test: builds
Change-Id: I256a630c60a2580c6fa4887cde1220397037146c
2 files changed