bugfix: prevent memory error on empty matches for url
bugfix: prevent memory error on empty matches for url

(cherry picked from commit 6451f35cc78aae3cbf436ea4895221e77e385845)

jhonnyam123/hangoutsbot,cd334/hangoutsbot,makiftasova/hangoutsbot