added path null checking

avoid from NullPointerException in ShadowUriMatcher