Fixes NPE when creating queue store factory

closes #3907