fixed bugs in ValidationError.fromPlainObject()

pertains to DIQ-18