Fix crash when checking result.rows in nodepg storage
Fix uncalled callback in finalize for empty entity results