Update VincentyGeodesy.java

Double.isNaN(x) to compare var with NaN