handle None values in lazy_create

This fixes an error introduced in commit d1a31ded. It is indeed caught
by the test suite, but I wasn't paying proper attention when I merged
that commit.

We need to accept None values for mapped relationships in case the
relationship is NULLable.

Change-Id: I28b69a6e04404c4db719e5445db238a3ae6edb16