Target document is not always available.

The mongodb odm documentation indicates that `targetDocument` is
optional. This was causing an undefined index notice when it was not
specified.