If everybody is doing this, prices rise aproprietely, and GDP corrected for inflation is still a good indicator.
EDIT: BTW there's a reason people don't generally sell cheap things for billions of $ - you'll both have to pay tax from that sale :)
And even if we assume no inflation - government can now invest these money, fueling economy, so this sale had at least some positive effect on economy.
This is taking the edge case and extrapolating it over the rest of the curve of possible activities.
Maintenance and repair are a subset of all business and economic activities. AFAIK its a subset of GDP calculations.
The rest of the value additive portions of the economy are captured, which is what GDP is supposed to roughly reflect.
Further, if there was a spurt of such activity, such as an earthquake - GDP output would fall, because now while work is being done to repair things, profits from more valuable actions such as making high margin products stops.
Your GDP growth rate, for that year drops, if not total GDP output, because now effort and energy is being directed at maintenance and not wealth creation.
EDITS (replies to below):
In the case of the two poems, as archgoon points out, the government will collect sales and income taxes which is why that situation never happens... ever. And if you didn't report the transaction to the government to avoid taxes, GDP will be unaffected because GDP is a statistic that is reported by the government, which can't report things it doesn't know about.
Technotony is right about the smashed windows paradox. You could argue that the "value" that is added is the tradesman gets paid (income), and the shopowner gets a new window.
The GDP is not a perfect measure of the strength of an economy. There are plenty of valid criticisms. But it's certainly one of many useful data points.