Avoid KeyErrors in timing results

For some weird reason I get `KeyError`s in this part…

I'm not exactly sure why they happen, because as far as I understand it they should not.  
Sadly I'm under a time constraint right now, so I had to "workaround" this, rather than truly fix it. Below is the workaround, which uses the wonderful `setdefault`