Make PacketCodec safe for getDeclaredFields invocations on != machines.