Adapt code to default value being 0

Following recent modification of default values
(where I used 0 instead of None), update an 'if' test condition to test against
0 instead of None.