Minor Fix to deleteCartoLayer

This is necessary to delete canvas layers that don’t have associated g
elements