Enhancement: Make server side space templates production ready

Fixes several smaller bugs and adds some improvements to space templates, introduced with https://github.com/owncloud/ocis/pull/8558

https://github.com/owncloud/ocis/pull/8723
