cinnamon-settings - themes - fix potential division by 0

https://github.com/linuxmint/Cinnamon/commit/e5899dfaddd029023be62efb8a12697f07a29d1a#commitcomment-8338994