Where—
a person is detained under section 29 …
…
the detained person must be brought, on the next court day on which it is practicable to do so, before the sheriff sitting as a court of summary jurisdiction for the district in which the person was arrested.
Nothing in this section prevents the detained person from being brought before the sheriff on a day other than a court day if—
the sheriff is sitting on such a day for the disposal of criminal business …
…