Check packet length before saving it.

This is another go at the stacktrace from #30.
When replaying from file, don't set the filter