Fixing breaking change by using call

Previous commit was not using call when calling hasOwnProperty and was always returning false.