VariablesPreference: Disable delete button when table is empty
VariablesPreferences: Abort editing before deleting a row

Before we would throw an exception when the user deleted the last row while it was being edited.
VariablesPreferences: Make insertion of row more natural

We now insert new variables after the selected row.