Check new workspace for MantidMatrix is not a group workspace

Refs #9024
Merge branch 'bugfix/9024_fix_crash_when_grouping_displayed_matrix' into develop