At the very least, if you destroy a building before it's finished being built (because of misplacement) you should get all the resources back. Basically, the resources should just be "put on hold"...