Fixes NPE when passing nil to gravatar function