I hate to break the news to you but all heads of state have “canned” funeral plans prepared in advance because of all the pomp and circumstance involved and the international customs and protocols that must be observed.
Heads of state are not the only ones whose deaths are prepared for ahead of time, and other interests than governments prepare for them.
A couple of times, news organizations have accidentally released false news of the deaths of celebrities, apparently while editing/updating the information they have prepared.
They tend to keep many obituary articles ready to go.