Fix a bug in `WrappedConnection.equals`.