Fix an issue where None comparison to int is failing
Fix an issue where None comparison to int is failing

This comparision would raise an "unorderable types: NoneType()> int()" exception. Fix this by checking
for a value before comparing.

suutari/shoop,shoopio/shoop,shawnadelic/shuup,shawnadelic/shuup,shawnadelic/shuup,hrayr-artunyan/shuup,hrayr-artunyan/shuup,hrayr-artunyan/shuup,shoopio/shoop,suutari/shoop,suutari-ai/shoop,suutari-ai/shoop,shoopio/shoop,suutari/shoop,suutari-ai/shoop