Fixing scalar detail back-button bug.

We really should handle dialog state better and figure out why the '.webroot'
div value gets set to an odd value when navigating to the page via the back
button.