SOLUTION:
I had the same problem of themes not saving when testing on a free host,
but it worked fine on paid hosting.
I believe this is caused by file permissions as you are overwriting via webpage not ftp.
Try increasing permissions or just use the editor on another host then import the theme you created.