Fixed bug where infinite streams would cause a crash

A friend of mine and I were using this and he noted that it crashed on infinite streams so I guarded against duration being 0.0.