That only works if you are able to move the advancement tokens off somehow. Otherwise, as noted on the card, the rez cost is lowered by the advancement tokens on it, which is true whether the card is rezzed or unrezzed. Since BS gives you back the rez cost, a triple advanced Wormhole still gives 0 credits; the same you rezzed it for.
Now lets pretend it works the way you want! The way I usually think about advancing ICE is that it basically takes 2 credits per advancement: the one you used to advance it, and the one you lost by not just clicking for a credit. Lets look back at Wormhole again as an example of what I mean. Let's say you have 10 credits. You spend your turn clicking up to 13, and then the runner runs on it and you rez for 9. You're now at 4 credits. If you had spent your turn advancing it instead, you're at 7 credits, both before and after rezzing it, since it costs 0. So basically, spending the turn advancing it saved you 3 credits over clicking for credits, so Wormhole effectively cost 6 to rez.
So now back to Not-How-Blue-Sun-Works, where we magically ignore the space ICE text and get back real money for advanced ICE. Wormhole cost 6 to rez after triple advancing it, as per the example above. You now pick it up for 9. You've now spent an install and an entire turn advancing ICE to get a Beanstalk Royalties! So even in this case, it's still a really, really bad move for BS.
Thank god it doesn't work that way so I don't have to see people trying to do this.