Be more consistent with errors in TemplateRequest.

If the 'error' parameter for the callback is non-null, ensure that the
src parameter is null.

Change-Id: I5b9105ebbf77d6a2030e955e9df46e33f6571814
Merge "Be more consistent with errors in TemplateRequest."