The Tony winner joined the cast of the musical he directed and choreographed in a true understudy-to-the-rescue moment.