lib/sqlite3: fix empty row on select without results