small fix for rescue in check_uri?