[pitch] prevent null pointer dereference in yinfast