Adds nil check to fix warning the running against hosts with no auth.