added a check for existence of num, fixes #458
Merge pull request #460 from gwu-libraries/t458-unassigned-variable

added a check for existence of num, fixes #458