Fixed a bug with the list command when there aren't any portals.