fixes #3876 allowed to import content with out selecting a structure

Fixed the issue and pushed the code for review, please check it.