Torch: Fix NPE

Patchset 2: Fix code style

Change-Id: Idcd93d7ede3c0b4dbffa8546763c6fc7f62af43c
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>