Fix exception in quickview when libraries are changed when the window is open.
Merge from trunk
Fix error generated when changing libraries with the quickview window open