Fixed issue with non-closure callbacks in SiteTree::beforeExtendingCMSFields