views_processing: Fix replacement dict lookups

Fixes #6348.