Fix an issue with re-creating state saves from XML (fixes state saves when rezzing from inventory).