In John Gay’s The Beggar’s Opera (1728), the ludicrously contrived last-minute rescue of Maceath works as a deliberate deflation of opera’s various dii ex machinis.