Added validation for isVisible in chart widget. See merge request theappsmith/internal-tools-client!476