Gravatar fn throws NPE when passed nil as email

Since the gravatar function supports default values I suggest supporting nil as email and return the default images.