Remove layer from table if reading file fails
Merge remote-tracking branch 'origin/129-fix-layer-table-on-error'

* origin/129-fix-layer-table-on-error:
  Remove layer from table if reading file fails