ENYO-3732: add condition to check if add variable is undefined.

Enyo-DCO-1.1-Signed-off-by Junil Kim <logyourself@gmail.com>