Fixed NPE in URIHandler.

Change-Id: I40c8cd2041d7aad211310e62bc4da83d62c96e4b