One or more URLs were invalid and have been reformatted. After a bit of profiling I found out that sharepoint scripts checks for src attribute on v:rect element that results an exception (look at the topic title) which in turn results an alert. From what I have seen v:rect is created for layers that is instances of esri.layers.GraphicLayer or derived from it.