Fix typo while processing request data

While trying to create multiple templates we got an error:

ReferenceError: result is not defined
    result[key]=tmpArray;

Fix it.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>