changing :
if (result == nil || [NSURL URLWithString:result] == nil)
to
if (result == nil || [NSURL URLWithString:result] == nil || [result length]<=0)
seems to fix the issue.
the getresult function in SHKResult makes sures it does not pass back a nil string, so without the [result length]<=0 it never enters this if block.