Check for NaN values on x/y

It happens on Firefox when the container has the property position: fixed;