Bug 1081850 - Check for resolve hooks when optimizing no-such-prop operations in baseline. r=jandem