[monkey] Fix useless errors in view layer.

This is done by making the patch more logically similar to our version
of actionpack (3.1.12).