patch user_alerts to check for html element before ajax call