It just occurred to me that they could get safe passage to an airport for Assange by appointing him as a member of the diplomatic staff of the embassy.

All such staff have absolute immunity from prosecution by a foreign government.