Fix valid task check on files with no lang comment symbol