Do we need to remember the original hidden state and restore it here? If yes, then let's add the code. If no, then perhaps the test for `isHidden` at line 394 is not needed; i.e. we can assume it is hidden.