Fixed remaining broken hasOnnProperty with return instead of continue