Fixing validation of empty packets.