patched divide by zero within SmelteryGui

Just patched a divide by zero:

fix #191