Submitting an empty queue causes a request error

I don't know if this is intentional or not. If it is not then this PR makes it so submitting an empty queue is essentially a no-op.

If it is intentional perhaps a local exception can be thrown instead of making an api call?