Fix crash when using dynamic relationship on nil source keyPath

fixes #2056