Fix JavaScript unit test failures from the Markdown work.

The recent Markdown work introduced some JavaScript unit test failures.
Most weren't a big deal, but one caused a lot of problems.

The recent change to ResourceCollection designed to prevent pollution of
options.data didn't end up setting options.data back to a value, causing
all query parameters to drop.

This fixes all the failures, resulting in 100% of tests passing on
Firefox and Chrome.

Reviewed at https://reviews.reviewboard.org/r/6534/