The Prime Minister dodged all of the major beartraps that could have doomed the visit to the annals of diplomatic disaster