Added handling for when an AS or IP does not exist