Nearly new Dreamliner was preparing to operate a flight to Los Angeles when the incident occurred at the gate