You're missing the point that mathematics doesn't work like that. The equation:
##x^2 = 2## has no integer solutions, but does have a rational solution.
Whether it has a solution depends on the set of numbers you are dealing with.
Similarly, ##f: \mathbb{R} \rightarrow \mathbb{R}## such that ##f(0) = +\infty## is not a well-defined function, and therefore cannot be integrated. The function ##f: \mathbb{R} \rightarrow [-\infty, +\infty]## such that ##f(0) = +\infty## is well-defined and can be integrated, assuming your integral is defined for such functions.
As mentioned in some posts above, a physicist doesn't have to worry about such niceties, but a mathematician does. And, since this is in a maths forum, only well-defined functions please!
(Ironically, if the OP had omitted the domain and range, we could have implicitly accepted the range of the function. But, the OP is quite explicit about trying to define a real-valued function.)
Mathematically, you are free to define ##\infty.0## to be whatever you want it to be.
One problem with taking this product to be ##1##, say, is what happens to the integral of the function ##2f##.