set_head: Add a fallback to a GERRIT_HTTP_PASSWORD environment variable

Also check early that user and password are actually provided.
set_head: Use the more speaking ".nil?" instead of " == nil"