fix/hack for target-document

is this enough to fix http://www.doctrine-project.org/jira/browse/PHPCR-110 ? in the ticket i am worried about returning null but i saw no problem arising when i do what i do here.