Fix issue where the 'NotNone' validator would fail also when object data is present.