Fixed bug where tenant_id was ignored if passed to set_credentials().

Taken from GitHub PR #99.