skip invalid TypedefDecl if its source location is invalid