Avoid running plugin on empty uris