dbwrapper: Fixed error handling in Firebird driver.