bug #3363: rescue exception when trying to parse a plain service template

(cherry picked from commit ab7b13b664bf54842c34c2be583dad51ccd78dcf)