scan-build #14: remove divizion by zero

- return if condition is met and do not draw