Themes screen: Clicking back through history should properly close the overlay.

props gcorne.
fixes #27198.


git-svn-id: https://develop.svn.wordpress.org/trunk@27306 602fd350-edb4-49c9-b593-d223f7449a82