Fixed a broken test introduced in 6fa7d7c5. Refs #21553.

Thanks Shai.