dsdb: Check for pointers before we deference them.