Bug 60593: rt client exit with error if current commit hash couldn't be found

This prevents sending results with empty commit hashes.

Change-Id: I8ab3a23c44622ff86e89d7c0da06e66d9cc1cc2a