[lib] validate that an object exists in the data before attempting to plot for tags