[COOK-2354] fix trailing comma bug in listen option