OPT: register_to_template: fixed issue #681
OPT: register_to_template: fixed issue #681

Former-commit-id: 50e5d10db8a034bc32901ad25363b2dc6c7355f1 [formerly e63648730b4b8b568f6c267dd2d6de52a3a644c1]
Former-commit-id: 7ea14fe977d272cdc743ed194b4c60c10c7c4a1d
Former-commit-id: 73ea6881a9f711c72ed02d9dfc76a64d69139a21
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox