In order to prevent this from happening again in the future, I would recommend you keep a backup of you license on the controller.
Use the following command to create a license backup file.
(master) #license export backup.license
Successfully exported 4 licenses from the license database to backup.license
You can then import the license from the same file using the following command.
(master) #license import backup.license
Successfully imported 4 licenses to the license database from backup.license; please reload to make licenses take effect