URIUtils: fix one gross error; remove one test

Arguments to .checkNotNull() were inverted... Also, we now check that an empty
scheme is illegal.