Close Template Dialog when we saved a template

Change-Id: I1529e7d628984d9720dd1169816911a957df7a11
Reviewed-on: https://gerrit.libreoffice.org/7850
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>