DocCode test for Defect #2552 Null reference exception in getValidationErrors