api: fix crash on passing on no subsystem