Adding robustness and verbosity when locating KParts
- Adding both comments and debug output in code sections on locating KParts used to edit bibliography files.
- Addressing bug where code depended on a valid return value of QList::last() not considering that the list may be empty.
CCBUG: 394659