Fixed an issue with ObjectGraphSanitizer throwing an exception when it shouldn't have to.