Move up check for error status of prepareStatement to before access of info.
Merge branch 'fix/preparestatement-error-check'