Fixed queue dispatching

Fixed a bug in dispatching to queues
We allow null to dispatch synchronously if no `$queueResolver` was set.