What if the device doesn’t work?

Time and again I have read a story where the steampunk inventor creates a device, at the last minute or there would be no suspense, that saves the day. Is this trope becoming a clique? The villain has a time machine that always delivers him to the right time or...