MDL-43621 badges: Fix has_awards() result when deleted users are the only recipients of a badge