Fix the bug that list nearby portals will throw Exception