(2)Where a sentence passed by a court-martial which has been confirmed, or which does not require confirmation, not being a sentence passed in pursuance of a new finding substituted under sub-section (1), is found for any reason to be invalid, the authority referred to in sub- section (1) may pass a valid sentence.