0.8dev: Fixed unbound local variable errors when exception is raised. Refs #800.

Patch by Olemis Lang.


git-svn-id: https://svn.apache.org/repos/asf/bloodhound/trunk@1587754 13f79535-47bb-0310-9956-ffa450edef68