Only attempt to login if the user has supplied a password
Based on the comments I suspect the devs originally wanted to make the login()
call optional, but instead it was run anytime a task was run whether or not 'passwd'
was set. This change just adds a simple check and skips the login() call if the
user did not supply a password. P4Ant will properly pickup an existing ticket if a password
is not set.