Don't attempt to render invisible graphs

Graphs that are not in the visible tab of a tabbed module will attempt to render on window resize which will throw errors because they are hidden.