core: handle empty PCAP trace files

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>