Fix NPE when creating queue store factory

closes https://github.com/hazelcast/hazelcast/issues/3907