Fixed #23750 -- Allowed core.checks.register to be used as a function