Modify fetch.js

When input time is null,let it do right thing.
Merge pull request #140 from promise82114/fetch

Modify fetch.js