Check for division by zero when performing modulus
operations.

<rdar://problem/14656908>