Fixed the TemplateNotFound error in v1 api.

Fixed the bug #1109217.

Change-Id: Ic4019d2bc91701127ee2b2fb555897a14bd0f299
Merge "Fixed the TemplateNotFound error in v1 api."