jquery.ui: don't use undefined to build an initial URI

If you call .attr('src') on an image that doesn't have a src yet, it momentarily changes the src to `window.location`, which could result in an extra request to `window.location`.