Fix issues with empty events when parsing commands in config.json.