Fixes "Creating default object from empty value" warning message when
selecting against sqlite.
Merge conflicts with upstream
Merge pull request #63 from droboports/master

Prevent warning messages when using SQLite with PHP 5.5.