Thanking God can be acceptable or unacceptable, depending on who is doing the thanking. I'm sure there are different degrees of good and bad, also. Without going into genres and who should and shouldn't thank God, I'll just say that quite a few could probably be justly met with Psalm 50:16: "But unto the wicked God saith, What hast thou to do to declare my statutes, or that thou shouldest take my covenant in thy mouth?"`
That being said, it's a bit hypocritical of me to say that, because I myself have felt the sting of that scripture after some dark disobedience. Ironically, Nikki, I think there's a Cross Movement video that deals with that same issue. It's the one with the chorus that goes, "Whatchu know about this, huh what, huh, huh, huh what what?" That looks really dumb typing it out.
The video starts off with a presumed rapper thanking "God" for success and what not, and they all stand up in the crowd and start rapping at him with that line, as in, "You have neither part nor parcel with us." So apparently they wonder the same thing.
Problem is, like I said, I can often apply those words to myself and shudder.