Fix for bug 1060760: Missing variable assignment for exception