ui: Handle case returned interval is 0 second.

Fix issue #21