Fixed some problems with licence import

I have correctly handled empty sheets and also excluded the tree-related fields from validation.