Fix the NullReferenceException when accessing proxy properties sometimes.