hide editor on deselecting template

fixes https://github.com/owncloud/core/issues/11346

@karlitschek backport to stable7?