fix(ng): in angular.copy do not call hasOwnProperty on objects with not prototype

angular.copy can be called with an object that has no prototype. Call
Object.prototype.hasOwnProperty instead of object.hasOwnProperty to
safely check if object has a property