JGRP-1849 Avoid NPE when SASL mech is not provided

Backport to 3.4 of
https://issues.jboss.org/browse/JGRP-1849