Checking if email is defined before generating avatar URL.