If you search here you will see several threads on this subject. Nairobi isn't any more dangerous than most any other city in the world. If you go in the wrong place at the wrong time, you will be in trouble in Los Angeles, Paris, Rome, and certainly JoBerg.
Arrange for airport pickup from your hotel and you will be fine.