fix #1149 using 2 phase layer loading

ActiveGeoNetworkRecordStore will load collections in 2 steps. the first
step is to insert the layer into the store, the second would be to mark
it as 'loaded', so the download InsertionService knows what collections
are loaded and can be displayed in the cart and what collections are
still loaded. after a collection is fully loaded it'll trigger a redraw
of the cart.
Can the call to recordLoaded be factored out of the if-else. As it's always called regardless of whether we have wmsLink or not?