Where two (2) or more defendants are joined in one (1) indictment and shall sever in the trial, the costs which shall have accrued before the severance shall be adjudged against such of the defendants as may have been convicted, and the costs thereafter accruing shall be apportioned and adjudged accordingly.