Fixed an issue where portals were deleted after retriggering an event for the second time, such as the automatic closing of a door. This particularly affected the introductory/tutorial section of the game but could potentially impact other areas as well.