fix issue where color formatting text is leaking

See https://github.com/angular/protractor/issues/1131
can we add a comment here on what this craziness is doing?