s4-dsdb: Fix a possible NULL pointer dereference