fixes bug 888089 - check for keys before using
Merge pull request #397 from rhelmer/bug888089-topcrasher-csv-broken

fixes bug 888089 - check for keys before using