Fix (and add a spec for) #18: div(nil, :class => 'foo') was producing just `<div></div>`, rather than `<div class="foo"></div>` as desired.