only try to wrap strings that are valid jQuery selectors

Added a check so that jQuery does not throw an error when parsing a url that is not also a valid jQuery selector.

Fixes #10.