Fixed a wrong merge

I'd have prefered this code to crash, but for once in a while it is cool
that it does not and simply returns NaN ;)

Thanks to Ronan Jouchet for the good catch.