Only refresh dashboard on positive integer [0.9.x]

Only refresh on positive integer, discovered by @linkslice. This is a backport of https://github.com/graphite-project/graphite-web/commit/ac4b82eadf098bffbc1e8bc53de7666eb2af1519 to `0.9.x`.

Refs #724