Refactored framesToFrameRange to fix issue where a broken sequence would generate the wrong frame range.   The problem with the old algorithm was that it only checked the left hand side for the next frame, not the right hand side as well.