sch_atm: Fix potential NULL deref.