Replaced JDK8 Double.isFinite with JDK7 compatable !Double.isInfinite

Double.isFinite is not in JDK7 and so fails to compile