smarter handling of errors when plotting a single bar