Handle empty licenses correctly