_get_tenant_by_name doesn't return correctly

If tempest_client is unset, _get_tenant_by_name will
definitely raise an exception, which is incorrect.

Change-Id: Id3e452a35d4f6c7083562689f556cac05868af45
Closes-Bug: #1231645
Merge "_get_tenant_by_name doesn't return correctly"