Properly handle empty packets and disallow them during handshake.