Fix return type for PluginCheckTask::ScriptFunc.