[EMULATORS] virtio: Improve sanity checks in queue APIs

Signed-off-by: Anup Patel <anup@brainfault.org>