Only include the key if auth is non-empty

I try make a fix for "empty auth" problem.