stop using First() to use FirstOrDefault

when searching localized texts
also removed unused method