Fix possible empty warning bar.

See #673.