In expression_tree.cpp a static_cast into type `PathMatchExpression` is attempted on type `MatchExpression::INTERNAL_SCHEMA_MAX_PROPERTIES`, which is not a descendant of `PathMatchExpression`. This type mismatch causes the mongod instance to crash. This can occur when any valid query containing shape {$jsonSchema:
{not: Properties: N}}}` is run.
Fix this issue by moving `INTERNAL_SCHEMA_MAX_PROPERTIES` into the correct section of the switch statement (where `INTERNAL_SCHEMA_MIN_PROPERTIES` already is) so that the problematic cast will no longer.