Fix crash when model with null-valued association is decoded