It betrays hubris on the part of the artist to think his medium is limiting him, and I think we all recognize this.
I have definitely written a happy song about someone and then we ended up splitting up, but you have to put those kind of things to the back of your mind and tell yourself that it's a good song and it works on the album.