Fixing potential bug in Contiki's queuebuf module