If option expired worthless (out of the money), there isn’t any charge on it. If it closes at 0.05, then it is not worthless, it has some value to it and gets exercised. So all charges are applicable at that time.
That issue that used to exist where more STT could be charged than the value of the premium itself, doesn’t exist today. Check this