No, that is not intentional. Wonders can't be pillaged, but a hostile unit stepping on the tile of a under construction Wonder will cancel it, and the Wonder will be available to build again. Possibly another nation started building it again before you could? If not that sounds like a bug, if...