Refs #8031 fixes various crashes and improves graph titles

Graph titles are now the workspace + log name rather than the secion of the log name before the first underscore.

Fixed an out of bounds check that was revealed after fixing the issure Martyn highlighted.
Refs #8031 Removeign debugging console commands

Removing some instances where i was writing to the console so i could see the QStrings i was working with.

Corrected a spelling in a similar command i haddn't added.