ZeroDivisionError fix

Bugfix for https://github.com/mariocesar/sorl-thumbnail/issues/242