drm/amd/display: Check if modulo is 0 before dividing.