Lionz is correct, you shouldn't have to load/save between layouts...
the reason you are having trouble is that the AJAX loads are only happening if the local storage item is missing. That is why it works one time after clearing local storage. Right after that the item is missing so it executes the AJAX code. Once the inventory is saved to local storage it is no longer missing, so then the AJAX call does not get made, and the AJAXLoading_1 variable will not get set.
Also, you do not need to do a Get Item after a Check item exists action. If the item exists then the LocalStorage.ItemValue is already set with the stored value, so there is no need to then issue the Get item action. The way you are doing it will work but has to load the item twice for each array.