Docsearch: Make sure to never return None in the document lists

Signed-off-by: Jerome Flesch <jflesch@gmail.com>