Some errors don't have line or column, return None

re.search() can return None, if it does don't try to return non-existent
results

(sorry that the previous pull request was from master instead of a feature branch)