Fix crash when model with null-valued association is decoded
Apply @cjoudrey's change to @jouh's change.

Effectively merge branch 'master' into fix-null-valued-associations-crash

Conflicts:
	src/model/model.coffee
Revert the functional change of 3e94f65 but keep the test