There's also a possibility that Katharine played a practical joke and glued a fake nipple on her boob.
I checked the scene in question it's about 46 minutes into the movie , and indeed it looks like a genuine nipple slip.
Katherine Heigl sexy tits and ass in bikini.