check for null visibleLayers on dynamic map service
Merge branch '#28/fix-issues-on-startup-caused-by-popups' into develop