Delete experiment bugfix.

Deleting an experiment produced an "detached exception".