are there model validations on Users? (to ensure it exists). If not, you should check email exists before generating a gravitar.