fix doc watch crash if title is not exist