remove CollectionsUtils.hasProperty inside of CollectionUtils.forEach

Fix https://github.com/adobe-research/brackets/commit/33a016da6d58b8f544863148a21b4cd5bf9c6806#commitcomment-3024713