Fix profile sampling: subscription out of range in a rare case.