Allow setting rescan interval to 0 (fixes #856)