Sometimes totalTime was still 0

totalTime doesn't get set until the stream resolves which sometimes takes longer than 1 second so added a loop to catch that case. Resume won't work properly w/o totalTime being set. This could be why the guy on xbmchub was intermittently not getting working bookmarks.