API.setVariable : ensure jpath is defined