fixes #12 If the active tab has no graph an error is shown