Update call to DoAlert()

When handling the alerts, the return code wasn't checked for error codes. A corrupted alert message could cause a control flow issue.