fieldIsRightType test was inverted

We wanted to extend Pages, but the test in fieldIsRightType was inverted.