On an appeal under section 5AA (1) of the Act (which section relates to cases dealt with by the Supreme Court in its summary jurisdiction), or under section 5AA (1) as applied by sections 5AB, 5AC or 5AD of the Act, an appellant who has been sentenced to penal servitude or imprisonment shall, subject to the Bail Act 2013 , be detained in custody or ordered into any former custody until the appeal has been determined.