passing null to defineFilter() or defineValidation() should clear the named block

Small change to clear named filter and validation functions by passing null to defineFilter() and defineValidation() as in the iOS version.