Adds checks at various stages to ensure that $pane->shown is set; if it is not, then it defaults to TRUE, instead of FALSE (and therefore hidden).