Handle empty ANSI color escapes

Cherry picked https://github.com/brightroll/rq/commit/427c0e95e0a73f593117dda07aef45360068de63