Added verification for the right context
Refs #20358