Fixed ugly error message when piping to `head`.