Fixed a bug that crashed python core on null values

This is analogous to line 517-519.
pyshark_getValueWithType may return NULL which is not an acceptable value for
PyDict_SetItem (doc?).