A nil check to handle cases where otherPort is nil, preventing a crash.
#297
+3
−0
otherPort is nil, preventing a crash.
#297