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 branch 'bugfix/7344_createworkspace_wiki_example' into develop