Return early if the user is not supplied or found when generating an API key. #2871