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

23 jobs for <span class="ref-name">midpoint_unittest</span> in 50 minutes and 50 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #22072
VS2013
VS2013-32-bit-shared-apps

00:04:34

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

00:03:40

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

00:04:52

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

00:03:34

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

00:05:15

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

00:03:45

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

00:04:59

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

00:04:10

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

00:05:39

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

00:04:48

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

00:05:33

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

00:04:55

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

00:06:57

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

00:05:10

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

00:06:26

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

00:06:31

passed #22056
Linux
clang-c++11

00:21:37

passed #22058
Linux
clang-c++98

00:16:54

passed #22061
Linux
cppcheck

00:00:27

passed #22055
Linux
gcc-c++11

00:04:40

passed #22057
Linux
gcc-c++98

00:04:10

passed #22059
Apple
macos-c++11

00:09:36

passed #22060
Apple
macos-c++98

00:08:58