$res isn't set it exception is thrown in fetch

On line 399, $res is never assigned if an exception gets thrown in factual->fetch()