Fix content server error if return to top level after using virt libs

Fix content server giving an error if you return to the top level page
after using the virtual libraries. Fixes #1216838 [500 Internal Server Error  The server encountered an unexpected condition which prevented it from fulfilling the request.](https://bugs.launchpad.net/calibre/+bug/1216838)