Do not access e->to->prevedge if not defined