Added support for nil password when none specified

A null pointer was thrown previously when nil or no trust-store-pass was set.