Only pass error info to error callback for statement that failed

The plugin now only passes the additional error info to the error
callback of the statement that actually failed.

The error callbacks for statements that were never executed are invoked
with an error object that only has a 'message' property (no change in
behavior).