SamSaffron/MiniProfiler — pull request #78 by jarib (2012-09-25 23:43:33+00:00)
Title: Fix issue with jQuery 1.8.1.

I recently upgraded from jQuery 1.7.2 to 1.8.1 in a Rails app, and noticed this error in my logs:

```
[2012-09-26 01:05:19] ERROR NoMethodError: undefined method `each' for "":String
/Users/fijabakk/src/git/MiniProfiler/Ruby/lib/mini_profiler/client_timer_struct.rb:40:in `init_from_form_data'
/Users/fijabakk/src/git/MiniProfiler/Ruby/lib/mini_profiler/profiler.rb:111:in `serve_results'
/Users/fijabakk/src/git/MiniProfiler/Ruby/lib/mini_profiler/profiler.rb:139:in `serve_html'
/Users/fijabakk/src/git/MiniProfiler/Ruby/lib/mini_profiler/profiler.rb:195:in `call'
```

The app is using the `use_existing_jquery` setting. It looks like jQuery may be serializing null differently than before (though I haven't tried to track down the exact version that introduced the change).

This PR fixes the issue by checking for an empty string in addition to "null". I added that value to `spec/fixtures/weird_client_request.yml` so it's caught by the specs.

Thanks for an awesome tool!