Issue #2378467: Fixed undefined $options['external'] when calling hook_url_outbound_alter().