wonderchook/mapmill — pull request #1 by timwaters (2012-11-01 20:09:29+00:00)
Title: Fix 500 error where on image.thumb as image is nil

From http://sandy.locative.us/images/sandy/ page, clicking on "sort this site" to http://sandy.locative.us/sort/sandy leads to a 500 error

Quick fix to only call image.thumb unless image is nil

The error is:
```
Processing MapperController#sort (for 184.75.104.3 at 2012-11-01 19:47:35) [GET]
Parameters: {"site"=>"sandy"}

NoMethodError (undefined method `thumb' for nil:NilClass):
app/controllers/mapper_controller.rb:56:in `sort'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'