Fix logic that determines if a layer added from Portal is of dynamic or feature type.
Merge branch '#40/fix-logic-that-determines-layer-type-when-layer-from-portal-added' into develop