patch for user_alert to stop ajax request if element is not present in dom