Missing samples in metadata was causing exception