Update wgha.js

date should be checked to see if it is NaN instead of null