Fix datasource from selection in the Map Editor when style(s) are selected in the TOC (#514)

Now creating a datasource from selection in the MapEditor works even when a style is selected in the TOC.

Fixes #514.