fix SIGFPE in hwcomposer caused by modulo by zero