Fixed the add many licences logic

From now the SN is not required, but niw is. Besides - entering niws and keeping SN empty will not fail to add licences.

Note: before migration you need to ensure there are no duplicate niws in the DB.