Bug fixes for deletion of queue items.
Bug fixes for deletion of queue items.

- Eradicate issue with IDs being returned in non-numeric order
- Remove chance of a delete with a limit not respecting the limit if nothing was returned from the ID lookup query
timblair/smq