Fix ifpageis template tag behavior on the unknown pages