diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index fb595e18b2401123d9b47d4ff2a29c1c9136ca6d..fd0050cfd5fdacd215bdc8b6fc6a3f1e9878f40d 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -126,7 +126,7 @@ def assign_ref_vars
     @tree = TreeDecorator.new(@tree)
 
     raise InvalidPathError if @tree.invalid?
-  rescue NoMethodError, InvalidPathError
+  rescue RuntimeError, NoMethodError, InvalidPathError
     not_found!
   end
 end