Fix a 500 error if you click the delete card button twice rapidly