Fix NULL-pointer crash in handoff_init(...)