[1.7.x] Updated the messages context processor docs

Refs #20610.
Backport of 7951f125e frmo master.