[avatar] Hander exceptions is template tags to avoid 500 errors.