Fixes NB#109728, fixes a crash when checking secure authentication methods