SERVER-14892 Fix memory leak in MatchExpressionParser::_parseElemMatch

(cherry picked from commit cc80c4d9a0556926a3f3fa9556c95ffd56aa4814)
Merge remote-tracking branch 'upstream/v2.6' into v2.6