A water heater pressure relief valve/pipe is guided to release hot water outside of the pan (see picture). Is this installation correct?
I'd cut it off just above the first elbow. If there's a drain in the back of the pan it can empty out there. Not perfect, but better than what you got now. 

The end of the relief pipe is supposed to come down to within 6" of the floor, but it looks like that's about where it would be.