EMI: Fix segfault when cancelling a save.

It looks like the textObject is deleted as the save text is being updated, so the object is null. This just ignores the text settings if the textObject is null. Note that we also had to pull the Lua parameters off the stack, which is why this is written this way.