Fix disabling of edit/delete buttons when there are no more environment variables