Agreed, and yes, "deus ex machina" is the term I was looking for. It's frustrating to read a whodunit solved by "deus ex machina", and it rather misses the point of the genre. The Three Laws were a key exercise in thinking aloud about consequences of robotics, and as such are still valuable today.