Fix for issue #2227, errors when managing page types that have no assigned fields.
Typo here breaking page type delete
Merge pull request #2231 from jaminday/2.2/fix_1

Fix for issue #2227