That is good advice. Its always good to trap for divide by zero whenever it is possible that it might happen.
In this case we are OK with skipping a divide by 0 trap since the divisor is always 10 raised to some power. There is no power to which ten can be raised that will equal zero. Put another way, Log100 is undefined.