FT-828: Fixed deleting a subject with measurements