This problem is actually quite easy to solve, using this:
NULLIF(Divisor,0)
NULLIF will check whether the Divisor is equal to zero. If it is, then it specifies the value to be NULL therefore it won’t trigger the SQL Server error message.
More info: http://msdn.microsoft.com/en-us/library/ms177562.aspx