added resetFlow() , fixed NaN for switching videos by selectively applyi...

We found an error when switching videos where if the initial flow flag was set it would mess up the calculation so added resetFlow() to prevent that issue. And added checks for hasFlow in getFlowOffset() and getFlowPosition()