StatusValue: Reduce code duplication in addError()
Change-Id: I24dad3686657522480bc97b2b51565abf9531811