script handler: only publish when really deleted some keys