Check new workspace for MantidMatrix is not a group workspace

Refs #9024
Merge remote-tracking branch 'origin/bugfix/9024_fix_crash_when_grouping_displayed_matrix'