fix recreation of trashed cards in migration+ticket line view

Migration code to fix problems with existing trashed cards (see recreate trashed cards when plus card is created).

I created and ran a migration for this, but I'm not sure whether it got everything.  If we find any cards where A is in the trash but A+B isn't, let's take note here.

 

-e