Fixed undefined method `captures' for nil:NilClass (NoMethodError)
Merge pull request #7 from skreuter/master

Fixed undefined method `captures' for nil:NilClass (NoMethodError)