Use release_info not from received message but from task.cache value. Also check existence of task and release. Like that:
```
        task = db().query(Task).filter_by(uuid=task_uuid).first()
        if not task:
            logger.error("verify_networks_resp: task \
                    with UUID %s not found!", task_uuid)
            return
        release_info = task.cache['release_info']
```