The integral quoted in this question diverges!
So the suggestion "Changing the integral's upper limit from infinity to some exact value may be a good compromise." is not really a compromise, it is the only way to get a finite answer>