Logs: Fix bug while resizing window with no graph shown