Add a check for 'none' key type

I am unsure how this happens, but I run into it fairly often when dumping large datasets