Quick fix of NPE in inspect view.

It leaks keys, but it is working.