lib: fix error handling in rb_uri_handle_recursively_async

When we're not passed a directory to crawl, we need to clear the
error before checking the file we got instead.