Fix #35651, #35645.
Hidden faces do not get UvElements generated so essentially this caused
a null point reference on edge lookup.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57266 954f8c5b-7b00-dc11-b283-0030488c597c