inc/drivers_ldap: fix "Undefined variable"

If you call the ldap-sync cron script without any users or without any
groups in your ldap tree, it will notice an undefined variable "ret".
This fixes the error by defining the variable before iterating thought
the (maybe) empty search results.