Fixed issue with updating the visibility of a pie slice causing it to go invisible. Closes #2430.