Fix hakapcap segv with an invalid pcap file

When the pcap file does not exist (ie. 'hakapcap ddd ddd') the process
segfaulted.