Added check for non value to name setter in methodschemafield.