I disagree with the theorem. I think you could probably show that is not uniformly continuous on the real line, but it satisfies all the conditions of your theorem. Now, if in addition you require that the function goes to zero as x approaches plus or minus infinity, I might believe that.