Fixes #131 by allowing nil code to be passed to querying.rb

Multiple people, including myself were running into this error when following the carmen-rails how-to guide. After reviewing the code, I think handling a nil `code` in the querying.rb file is the best solution.