Fix CustomWorkspace example to use new API. Refs #7344

The example used to old API and therefore did not work out of the box.
Merge remote-tracking branch 'origin/bugfix/7344_createworkspace_wiki_example'