Avoid crash on NULL dereference

lgi crashed hard when trying to unmarshall 'nil' given as record with
transfer=full argument.  This fixes

https://github.com/pavouk/lgi/issues/41