src/plugin.c: Report an error if ctx.interval is not set.