Fix bug re destroying non-existent records.