Fix test of global purchlogitem before using it

Test was incorrect, has been fixed