I'm pretty sure that if this was an actual option that the Ecuadorians would have jumped at it.
---
> In 1964, a Moroccan-born Israeli double agent named Mordechai Ben Masoud Louk (also known as Josef Dahan) was drugged, bound, and placed in a diplomatic mailing crate at the Egyptian Embassy in Rome, but was rescued by Italian authorities.[4] The box that he had been sealed into "had almost certainly been used before for human cargo,"[5] including possibly for an Egyptian military official who had defected to Italy several years before but then disappeared without a trace before reappearing under Egyptian custody and facing trial.
> In the 1984 Dikko Affair, a former Nigerian government minister, Umaru Dikko, was kidnapped and placed in a shipping crate in an attempt to transport him from the United Kingdom back to Nigeria for trial.[4] However, it was not marked as a diplomatic bag, which allowed British customs to open it.[4]
---
The Egyptian diplomatic box "almost certainly" worked as intended, and it is quite believable that the Nigerian diplomatic crate would have worked without the obvious omission.
Either way, I strongly suspect the UK government not to be so stupid not to check any container large enough to contain an Assange shaped object that is marked as diplomatic mail from the embassy in London to the home country.
It makes for a nice movie plot but it would be pretty shoddy if they went for it.