Fixed Issue #40 get_first_outgoing_url hack function