fixed two bugs where mplotqueries would throw an error when no data to plot is available.