Avoid null user credentials.