tpm_manager: fix potential bugs in tpm_status

This would fix this error:
/tpm_manager/server/tpm_status_impl.cc:251:9:
The left operand of '&' is a garbage value
    if (ERROR_CODE(result) == TPM_E_DISABLED) {
        ^          ~~~~~~

BUG=b:174652437
TEST=CQ

Change-Id: I3e8519db979fd2316ac1a804039547a2f22c2ea4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2580972
Tested-by: Yi Chou <yich@google.com>
Reviewed-by: Leo Lai <cylai@google.com>
Commit-Queue: Yi Chou <yich@google.com>
diff --git a/tpm_manager/server/tpm_status_impl.cc b/tpm_manager/server/tpm_status_impl.cc
index a592af0..6b7c1fc 100644
--- a/tpm_manager/server/tpm_status_impl.cc
+++ b/tpm_manager/server/tpm_status_impl.cc
@@ -271,6 +271,9 @@
   CHECK(data);
   TSS_HTPM tpm_handle = tpm_connection_.GetTpm();
   if (tpm_handle == 0) {
+    if (tpm_result) {
+      *tpm_result = TSS_E_COMM_FAILURE;
+    }
     return false;
   }
   uint32_t length = 0;