docview: fixes the AV on exit.
docview: fixes the AV on exit.

NOTE
This is not a 100% fix, but rather a work-around. I need to still find out
why such AV's occur.

wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI