Fix bug where error did not immediately return
Fix bug where error did not immediately return

Previous implementation did not properly handle an error while
generating a BehaviorTree from a lua script in one specific case.

Stephen-Seo/BehaviorTree