Fix avatar rendering

If $id_or_email contained an object, get_user_meta was not resolving it correctly which could cause the wrong avatar to render. Now we extract the ID from the object in advance.