Made bad portal links crash rather than freeze