fixed parseFloat for null and undefined