You may have noticed that in the pro chess dance, that came half-way through the results show, most of the pros did not have their Halloween make-up on. This was particularly noticeable with Pasha.
So that routine must have been filmed quite a while before the start of the main show - to allow sufficient time for most of the pros to be made-up. I don't know how long that process would take.