avoid returning None in a function find_latex