Removes exception if an intermediate object is set to null.
Merge pull request #2 from atsar/patch-1

Removes exception if an intermediate object is set to null.