Fixes wrong return value for pwr() when the base was zero.