FIX: guardian always got user but sometimes it is anonymous (PR #9342)

  def initialize(user = nil, request = nil)
    @user = user.presence || AnonymousUser.new
    @request = request
  end

AnonymouseUser defines blank? method

  class AnonymousUser
    def blank?
      true
    end
    ...
  end

so if we would use @user.present? it would be correct, however, just @user is always true

GitHub

    let(:anonymous_guardian) { Guardian.new }

Nice fix :+1: