Fix segfault when trying to authenticate in servers that do not support ...

...authentication (none)
I reported this issue in #68023, this patch simply adds some verifications to check if the return value of libssh2_userauth_list is null to prevent segfaults.