Fix nil deserialization. Fixes issue #115.

I have no idea what I'm doing. Success!