Fix bug #9724 - is_encrypted_packet() function incorrectly used inside server.