Fix error handling in mysqli driver

PHP already handles an internal stack of error handlers
This other changed code-path requires a test case