fix handling of empty packets

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>