Fix when right value in where clause is ORM::Model::Field with no base attr.