Render graph with missing metric

Using a variable to select multiple nodes, sometimes one of the nodes does not have one of the defined metrics and will cause the graph to not render at all. Is there a way to get the graph to render the valid metrics and just ignore the one that is invalid?