Added check for nil or null string in hash creation

When using this category to populate gravatar images from data sources you can't always control, it would crash on creating the hash when a nil or null string was passed in. Adding a check for nil or null on the back end is cleaner than having to validate the strings every time before setting the gravatar image. It will also prevent crashes when the developer doesn't protect themselves against nil or null email strings.