the check for status.status should happen before trying to log it

otherwise, if status.status is None, status.status.api_status will throw
a TypeError

Closes-Bug: #1287097
Change-Id: I62dafed59dcf8850808b22b8977d346607176403
Merge "the check for status.status should happen before trying to log it"