fix(langchain): exclude middleware-internal model calls from the message projection (#11331)