fix pollAttribute get for empty db