Fixed a use-after-free.

But this does introduce a memory leak, curtesy of two splits in parameter
parsing, and MONGO_METHOD3. This patch is for 1.4 *only*, I'll cook up a real
fix for master.