Handle member_filter for entry without a UID set

Not sure if this can happen in practice, but let's just handle the case when the `uid` is empty, causing an exception.

Starting with a failing test and adding the fix next.