fix #1505 - assignment policy of relationship mapping not taken into acc...

This fixes issue #1505 and also handles other assignment policies that where not handled properly when assigning a nil value to a relationship. Those policies where not handled when the server send nil in a request or the setNilForMissingRelationships property was set to yes.