Ensure :js is defined regardless of the outcome of the test.

In the `ensure` block, `unless AbstractController::Collector.method_defined? :js` is for getting rid of the method redefined warning, in case the test passes.

Regardless of the test outcome, we should make sure `:js` is defined for AbstractController::Collector because we've removed it in the beginning of the test.

cc @senny