My custom widget has a click event handler that works with a draw toolbar and a dojo deferred function to create a snapped point on a map. The tool is working well with no errors in functionality in the map but I am getting a console error that I can't get rid of. I can't figure out what is causing it. The error occurs after the console.log('end') and before the console.log('second end') (see code snippet below). Can anyone help me troubleshoot the cause of this error so I can get rid of it? Here is the error: