Just fixed this same problem with mine..
took the headlining down, found the pipes at either side of the drip tray for the sunroof were blocked.. causing the water to overflow past the lowest verge.
I tried blowing down both pipes to test if they were blocked, they were.
I then used an airline and compressor to blow down the pipe and clear any obstruction. its now working properly.