JGRP-1849 Avoid NPE when SASL mech is not provided
Merge pull request #155 from tristantarrant/security_backports/3.4

JGRP-1849 Avoid NPE when SASL mech is not provided