Fix nil deserialization. Fixes issue #115