don't bother making get request if optional username and password arguments are undefined
Merge pull request #1 from aaearon/master

don't bother making get request if optional username and password argume...