Fixed #824 -- corrected a crash when lookarounds were used in branches