Script fails with comparision between 'NoneType' and 'int'

Example output:

2022-07-26 10:34:51,213 [ERROR] '>' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
  File "/usr/bin/fossa-with-cache", line 99, in <module>
    if licenseIssues > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'