Only add layer once confirmed it was added
Only add layer once confirmed it was added

Previously even if the layer failed to be saved for whatever reason it
was still added to the collection and thus appeared in the map’s
collection. Using create and the wait: true prop it won’t add it until
the server-side responded correctly.

The server-side issue of layer being saved in inconsistent state still
needs to be fixed in addition to this.

nyimbi/cartodb,CartoDB/cartodb,raquel-ucl/cartodb,nyimbi/cartodb,future-analytics/cartodb,dbirchak/cartodb,nyimbi/cartodb,DigitalCoder/cartodb,thorncp/cartodb,bloomberg/cartodb,bloomberg/cartodb,future-analytics/cartodb,nuxcode/cartodb,raquel-ucl/cartodb,future-analytics/cartodb,nuxcode/cartodb,codeandtheory/cartodb,UCL-ShippingGroup/cartodb-1,DigitalCoder/cartodb,UCL-ShippingGroup/cartodb-1,DigitalCoder/cartodb,dbirchak/cartodb,CartoDB/cartodb,codeandtheory/cartodb,UCL-ShippingGroup/cartodb-1,nyimbi/cartodb,dbirchak/cartodb,dbirchak/cartodb,thorncp/cartodb,raquel-ucl/cartodb,nuxcode/cartodb,DigitalCoder/cartodb,splashblot/dronedb,codeandtheory/cartodb,DigitalCoder/cartodb,thorncp/cartodb,raquel-ucl/cartodb,CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,bloomberg/cartodb,thorncp/cartodb,future-analytics/cartodb,dbirchak/cartodb,thorncp/cartodb,splashblot/dronedb,UCL-ShippingGroup/cartodb-1,bloomberg/cartodb,raquel-ucl/cartodb,nyimbi/cartodb,codeandtheory/cartodb,CartoDB/cartodb,nuxcode/cartodb,future-analytics/cartodb,codeandtheory/cartodb,UCL-ShippingGroup/cartodb-1,nuxcode/cartodb,splashblot/dronedb,bloomberg/cartodb