flags.c: drop empty-string flags

Also issue a scripting error warning