fix edit

* was not saving 'index' field correctly for sections
* was not taking into account that lede has no index field

Change-Id: I67c90953a7774f2d96573d6f1278223cf25b5028