fix sqlite3 error detection for bundler 1.4.0