Protect projects from being cascade-deleted when deleting their themes or templates