Fix keystore2 crash counting

https://r.android.com/1971319 changed the return type of
rustutils::system_properties::read() from Result<String> to
Result<Option<String>>.  But, read_keystore_crash_count() was not
correctly updated to handle the Ok(None) case.  Consequently, the case
of "property doesn't exist" started being considered an error, and the
code intended to handle this case stopped being executed.  Fix this by
correctly handling the return value.

Bug: 284163087
Test: Verified that the read_keystore_crash_count() error message is no
      longer present in logcat at boot time, and
      'getprop keystore.crash_count' shows 0.
Change-Id: I4b9ff16cba9e7500623dab7c3bc888cba0daf997
1 file changed