Removes exception if an intermediate object is set to null.