Fixed nameAttribute and option-text set to null when updating

Fixed nameAttribute and option-text set to null when updating individual fields through the assets/ API
isDebug is not here. Formatting wrong.