Only define projection.invert if it exists.

Also, return null instead of [NaN, NaN] if there is no inverse for a
given point.