When queue-store is not enabled, QueueStoreFactory should not be instantiated 

closes #1906