A Sylvester-Gallai theorem for cubic curves