Modify fetch.js

When input time is null,let it do right thing.