Added check for a bad path so the alert doesn't suspend the application