Fixed #23615 -- Validate that a Model instance's "check" attribute is a method.

PR used to trigger CI builds. Refs. #3362.