If you know PHP, the following is not executing as expected:
$result = $installer->query( "select count(*) nb from users_users having count(*) > 1" );
$row = $result->fetchRow();
On the first line, $result does not take the value expected, presumably because something goes wrong in query(). Make sure all PHP errors are reported (PHP setting error_reporting).