request mesh element status in MidpointT subdivision and fix a possible infinite loop

23 jobs from midpoint_unittest in 50 minutes 50 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #22072
VS2013
VS2013-32-bit-shared-apps

04:34

passed #22073
VS2013
VS2013-32-bit-shared-no-apps

03:40

passed #22076
VS2013
VS2013-32-bit-static-apps

04:52

passed #22077
VS2013
VS2013-32-bit-static-no-apps

03:34

passed #22070
VS2013
VS2013-64-bit-shared-apps

05:15

passed #22071
VS2013
VS2013-64-bit-shared-no-apps

03:45

passed #22074
VS2013
VS2013-64-bit-static-apps

04:59

passed #22075
VS2013
VS2013-64-bit-static-no-apps

04:10

passed #22064
VS2015
VS2015-32-bit-shared-apps

05:39

passed #22065
VS2015
VS2015-32-bit-shared-no-apps

04:48

passed #22068
VS2015
VS2015-32-bit-static-apps

05:33

passed #22069
VS2015
VS2015-32-bit-static-no-apps

04:55

passed #22062
VS2015
VS2015-64-bit-shared-apps

06:57

passed #22063
VS2015
VS2015-64-bit-shared-no-apps

05:10

passed #22066
VS2015
VS2015-64-bit-static-apps

06:26

passed #22067
VS2015
VS2015-64-bit-static-no-apps

06:31

passed #22056
Linux
clang-c++11

21:37

passed #22058
Linux
clang-c++98

16:54

passed #22061
Linux
cppcheck

00:27

passed #22055
Linux
gcc-c++11

04:40

passed #22057
Linux
gcc-c++98

04:10

passed #22059
Apple
macos-c++11

09:36

passed #22060
Apple
macos-c++98

08:58