In a question about travel to Puerto Rico Michael Hampton writes the following:
Note also that you should bring your green card and passport if you travel to or from Puerto Rico or the US Virgin Islands. While this is a purely domestic flight, and it is not strictly required for you to have your passport, if the flight has an emergency it may need to divert to an airport at an island which is not part of the USA. You will need your travel documents if this happens.
Are there historical examples of this happening, either in Puerto Rico or elsewhere? Presumably most passengers on the plane will have no passports in this case and would thus be ineligible to enter under default circumstances. Is it thus recommended to take a passport if your flight goes over foreign territory?