Fix JS error in GaiaDataLayer.deleteAllSms()

Also remove code which is no longer necessary with --restart option

This fixes #920