Kim Kardashian had a wardrobe malfunction on the red carpet but she handled it like a pro