flight.js: check if the flight's plane is visible before trying to hide it's badge