speek: fix potential NULL dereference