registration: Improve error message for invalid "callback" in extension.json