Hi,
I think it is not getting the map.spatialreference value.
problem with this statement (var pt = new esri.geometry.Point(47.249625077193045, 29.526414016317314, map.spatialReference))
you need to make the map variable declaration in global area, probably outside of init().
hope this will help.
- Rajesh