Updated aptpkg.mod_repo() module to properly add new PPAs

This is one potential fix for issue #17709.

In addition to parsing the return of `get_repo()` rather than catching its exceptions, this also fixes the return value for `mod_repo()` if the PPA is already installed by returning the repo info rather than an empty string.