Fix IndexOutOfBound issue

- If Toc Renderer fail to do something with DataSource it does not crash the rendering
- AbstractDataSource now check if there is a spatial field before accessing it while testing source type