Fix coverity warning around boost::unordered_map

Refs #10472
Fix coverity warning by refactoring to use common helper function

Refs #10472
Fix bug picked up by coverity.

Refs #10472
Removed unused variable that was detected by coverity.

Refs #10472
Merge pull request #57 from mantidproject/bugfix/10472_coverity_fixes

Looks good to me
Merge remote-tracking branch 'origin/feature/10485_new_refl_ui_support_group_workspaces'
Refs #10488 Don't show context menu on whitespace
Merge branch 'feature/10488_dont_show_context_menu_on_whitespace' into develop