Bugfix: discover_uaa wouldn't return target with no links supplied

The pull request we sent this morning didn't cover this one rather important edge case, and breaks some of the cfoundry gem's tests. Here's a better one, with a new test to cover this case.