Fix crash when viewing a page's comment.

Temporary Fixes #2945 - we'll want a more thorough fix for 4.7/4.8

cc @oguzkocer