Pretty sure the method expects a non-null string. If the idea is to filter out any users with "empty" displayName values, use advanced queries as detailed here: https://learn.microsoft.com/en-us/graph/aad-advanced-queries
https://graph.microsoft.com/beta/users?$filter=displayName eq null&$count=true