Added a shortcircut to return null if the object returned is null.