listitemmenu: guard activePort against null
it's not quite obvious why ports.at(index) would return null, but it's my best guess for why we have a crash here
it's not quite obvious why ports.at(index) would return null, but it's my best guess for why we have a crash here