Don't return undefined result on exception (thanks SRI)