[Detail] Fix #20 , when the template does not exists, An error is thrown.