Slightly better workaround for unknown Python workspace types.

It's still a sticking-plaster fix as it's a little late in the cycle to
implement the plugin exposure to Python.
Refs #9378