Move up check for error status of prepareStatement to before access of info.
Merge pull request #208 from ChannelMeter/fix/preparestatement-error-check

Check the error status of prepareStatement in execute batch