create purchase log object from purchase log id property, avoids fatal error if global is undefined
remove superfluous references to gloval variables
Merge pull request #696 from JeffPyeBrook/purchase-log-undefined

Merchant class undefined purchase log reference