Fixed potential unbound varialble errors on test failures.

Change-Id: Ifaeec5b4c84ac244acdcd99b87ce95293ffb149d
1 file changed