ZEN-11235: Fixes "TypeError: unsupported operand type(s) for *: 'None' a...

...nd 'int'".