Add secondary sorting by template_id when backing up templates. bugid:110906
Remove redundant code for not displaying error message. bugid:110903