Fix for not raising invalid accounting exception.

[1682]
Detect bad magnification values. [1682]