Avoids calculations with 0 values, including 0 / 0, resulting in strange big negative values e.g. for durations in Item::moveAndResize method.
Gets rid of the repeated warnings during startup about: QVariantAnimation::setDuration: cannot set a negative duration
@aacid @asemke