Fix hang when packet can't be initialized.